package se.agileworkshop.clientapp;

import se.agileworkshop.client.GuiActions;

public class GUIRunner {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		GuiActions actions = null;
		try {
			String className = System.getProperty("actionclass");
			Class<GuiActions> ga = (Class<GuiActions>)Class.forName(className);
			actions = ga.newInstance();
			
		} catch (Exception e) {
			System.out.println("Class not found: "+e.getMessage());
			System.exit(0);
		} 
		
		PersonFrame pf = new PersonFrame(actions);
		pf.setLocation(150,150);
		pf.setVisible(true);

	}

}
